package com.kaoshi.management.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kaoshi.management.mapper.RolePermissionVoMapper;
import com.kaoshi.management.pojo.RolePermissionVo;
import com.kaoshi.management.service.RolePermissionVoService;
import com.kaoshi.management.service.XtRolePermissionsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author author
 * @since 2024-11-07
 */
@Service
public class RolePermissionVoServiceImpl extends ServiceImpl<RolePermissionVoMapper, RolePermissionVo> implements RolePermissionVoService {


    @Override
    public Page<RolePermissionVo> getPageLis(Integer current, Integer pageSize,Integer roleId) {
        Page<RolePermissionVo> page = new Page<>(current, pageSize);

        LambdaQueryWrapper<RolePermissionVo> queryWrapper = new LambdaQueryWrapper<>();

        return baseMapper.getPageList(page, queryWrapper,roleId);
    }



}
